﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Genealogy_Builder
{
    public class Relation
    {
        public Person person_a;
        public Person person_b;
        public string role_a;
        public string role_b;
        public string type;
        public DateTime start_date;
        public DateTime end_date;

        public Relation(Person a, Person b, string rleA, string rleB, string typ, DateTime start, DateTime end)
        {
            person_a = a;
            person_b = b;
            role_a = rleA;
            role_b = rleB;
            type = typ;
            start_date = start;
            end_date = end;
        }

        public override string ToString()
        {
            string relate;
            relate = person_a.name + " + " + person_b.name + ": " + role_a + " " + role_b + ": " + type;
            return relate;
        }
    }
}
